<titlemenu></titlemenu>
<div class="dj-card">
    <div class="dj-body" activate-input activate-select>
        <div class="card">
                <form class="form-horizontal" role="form" id="tqdflzhyform"
                      name="tqdflzhyform" ng-submit="save(tqdflzhyform.$valid)" novalidate>
                    <div class="dj-formtable">
                        <table class="dj-table dj-table3">
                            <tr>
                                <th>所属党组织<span style="color:red;">*</span></th>
                                <td>
                                    <div class="input-group input-group-search"
                                         title="选择党组织" ng-click="selectParty()">
                                        <input name="partyname" type="text" ng-model="dataModel.partyname"
                                               class="form-control" ng-required="true"
                                               ng-disabled="true"/>
                                        <span class="input-group-addon"><i class="material-icons">search</i></span>
                                    </div>
                                    <span ng-show="this.tqdflzhyform.partyname.$invalid &&  this.tqdflzhyform.$submitted"
                                          class="error">必填.</span>
                                </td>
                                <th>类别<span style="color:red;">*</span></th>
                                <td ng-class="{ 'has-error' : this.tqdflzhyform.meetingtype.$invalid &&  this.tqdflzhyform.$submitted}">
                                        <select name="meetingtype" ng-model="dataModel.meetingtype" class="form-control"
                                                ng-options="type.dickey as type.dicvalue for type in meetingTypeList"
                                                ng-required="true">
                                            <option value="">--全部--</option>
                                        </select>
                                        <span ng-show="this.tqdflzhyform.meetingtype.$invalid &&  this.tqdflzhyform.$submitted"
                                              class="error">必填.</span>
                                </td>
                                <th>主持人</th>
                                <td ng-class="{ 'has-error' : this.tqdflzhyform.compere.$invalid &&  this.tqdflzhyform.$submitted}">
                                    <input type="text" class="form-control" name="compere"
                                           autocomplete="off" autoclose="true" ng-model="dataModel.compere"/>
                                </td>
                            </tr>
                            <tr>
                                <th>会议时间<span style="color:red;">*</span></th>
                                <td ng-class="{ 'has-error' : this.tqdflzhyform.meetingdate.$invalid &&  this.tqdflzhyform.$submitted}">
                                    <input name="meetingdate" class="form-control"
                                           autocomplete="off" autoclose="true"
                                           data-date-format="yyyy-MM-dd" data-date-type="date"
                                           ng-model="dataModel.meetingdate"
                                           placeholder="" bs-datepicker ng-required="true"/>
                                    <span ng-show="this.tqdflzhyform.meetingdate.$invalid &&  this.tqdflzhyform.$submitted"
                                          class="error">必填.</span>
                                </td>
                                <th>会议名称<span style="color:red;">*</span></th>
                                <td colspan="3" ng-class="{ 'has-error' : this.tqdflzhyform.title.$invalid &&  this.tqdflzhyform.$submitted}">
                                    <input type="text" class="form-control" name="title" autocomplete="off" autoclose="true"
                                           ng-model="dataModel.title" ng-required="true"/>
                                    <span ng-show="this.tqdflzhyform.title.$invalid &&  this.tqdflzhyform.$submitted"
                                          class="error">必填.</span>
                                </td>
                            </tr>
                            <tr>
                                <th>会议地址</th>
                                <td colspan="5" ng-class="{ 'has-error' : this.tqdflzhyform.address.$invalid &&  this.tqdflzhyform.$submitted}">
                                    <div class="form-group" style="margin-bottom: 4px;margin-top: 5px;">
                                        <div class="form-line select-group" style="padding-bottom: 1px;">
                                            <select ng-model="dataModel.address"
                                                    ng-options="type as type for type in addressList"
                                                    class="form-control"
                                                    name="addressSelect">
                                            </select>
                                        </div>
                                        <div class="form-line" style="width: 97%;margin-top: -29px;z-index: 9;"
                                             ng-class="{ 'focused error' : this.tqdflzhyform.address.$invalid &&  this.tqdflzhyform.$submitted}">
                                            <input type="text" name="address"
                                                   ng-model="dataModel.address"
                                                   maxlength="1000" autocomplete="off" autoclose="true"
                                                   class="form-control"/>
                                        </div>
                                        <span ng-show="this.tqdflzhyform.address.$invalid &&  this.tqdflzhyform.$submitted"
                                              class="error">必填.</span>
                                    </div>
                                </td>
                            </tr>
                        </table>
                    </div>

                    <div class="dj-formtable">
                        <div class="table-responsive list-table-panel">
                            <div class="list-table-title">
                                <div class="table-title">
                                    出席人员列表({{dataModel.personnellist.length}}人)
                                </div>
                                <div class="table-tool">
                                    <button type="button" class="btn btn-primary dropdown-toggle"
                                            data-dataoptions="selectUserlist" title="新增"
                                            ng-click="selectUser()"
                                            bsselectdata-pro>
                                        新增
                                    </button>
                                </div>
                            </div>
                            <div class="outoflow" style="max-height: 300px;">
                                <table class="table table-bordered table-striped table-hover js-basic-example dataTable text-nowrap">
                                    <thead>
                                    <tr>
                                        <th>序号</th>
                                        <th>姓名</th>
                                        <th>是否缺勤</th>
                                        <th>缺勤原因</th>
                                        <th>操作</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <tr ng-repeat="it in dataModel.personnellist">
                                        <td scope="row">{{$index+1}}</td>
                                        <td>{{it.xm}}</td>
                                        <td>
                                            <input type="checkbox" id="{{pageId}}_checkbox_{{$index+1}}"
                                                   class="filled-in chk-col-red" ng-checked="it.isabsenteeism==1"
                                                   ng-click="it.isabsenteeism==1?it.isabsenteeism=0:it.isabsenteeism=1"/>
                                            <label class="checkbox_lable" style="height: 10px;"
                                                   for="{{pageId}}_checkbox_{{$index+1}}">{{it.isabsenteeism == 1 ? "是" : "否"}}</label>
                                        </td>
                                        <td>
                                            <textarea name="absenteeismcause" ng-model="it.absenteeismcause"
                                                      class="form-control" rows="3"></textarea>
                                        </td>
                                        <td class="text-center">
                                            <button class="btn td-btn bg-pink waves-effect"
                                                    ng-click="deleteUser($index)" title="删除">
                                                删除
                                            </button>
                                        </td>
                                    </tr>
                                    <tr ng-if="dataModel.personnellist.length<=0">
                                        <td colspan="7" style="text-align:center">暂无数据</td>
                                    </tr>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                    <div class="dj-formtable">
                        <table class="dj-table">
                            <tr>
                                <th style="width: 5%;">列席人员</th>
                                <td colspan="5">
                                    <input type="text" name="personnel" ng-model="dataModel.personnel"
                                           autocomplete="off" autoclose="true" class="form-control"/>
                                </td>
                            </tr>
                            <tr>
                                <th style="width: 5%;">会议主要议程及结果</th>
                                <td colspan="5">
                                   <textarea name="result" ng-model="dataModel.result"
                                             class="form-control" rows="3"></textarea>
                                </td>
                            </tr>
                        </table>
                    </div>
                    <bsfiles ng-model="reqFileModel"/>
                    <div class="form_foot">
                        <button type="button" class="btn btn-default" ng-click="pagechange()">取消</button>
                        <button type="submit" class="btn btn-primary" form="tqdflzhyform">保存</button>
                    </div>
                </form>
        </div>
    </div>
</div>